package com.fzrskj.cloud.free.core.enums;

/**
 * PayTypeEnum.
 *
 * @author zj.
 *         Created on 2018/12/29 0029.
 */
public enum PayTypeEnum {
    /**
     * 盛付通.
     */
    SFT("sftpay", 2),
    /**
     * 支付宝.
     */
    ALIPAY("alipay", 1),
    /**
     * 微信支付.
     */
    WXPAY("wxpay", 3);

    /**
     * tag.
     */
    private String tag;

    /**
     * type.
     */
    private Integer type;

    /**
     * constructor.
     * @param tag tag.
     * @param type type.
     */
    PayTypeEnum(String tag, Integer type) {
        this.tag = tag;
        this.type = type;
    }

    /**
     * equals.
     * @param comparisonTag comparison tag.
     * @return Boolean.
     */
    public Boolean equals(String comparisonTag) {
        return tag.equals(comparisonTag);
    }

    /**
     * get tag.
     * @return String.
     */
    public String getTag() {
        return this.tag;
    }

    /**
     * get type.
     * @return Integer.
     */
    public Integer getType() {
        return this.type;
    }
}
